module.exports = {
  publicPath: './',
  outputDir: 'dist',
  assetsDir: 'assets',
  productionSourceMap: process.env.VUE_APP_ENV !== 'prod',
  css: {
    extract: process.env.NODE_ENV === 'production',
    sourceMap: process.env.VUE_APP_ENV !== 'prod',
    loaderOptions: {
      scss: {
        // 自定义scss变量
        prependData: '$--color-primary: #409eff; $--color-primary-light-2: #66b1ff; $--color-danger: #f56c6c; $--color-success: #67c23a;',
      },
    },
  },
  devServer: {
    host: '0.0.0.0',
    port: 8280,
    disableHostCheck: true,
  },
};
